package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.MerchantRegionBindingsMapper;
import com.ruoyi.merchant.domain.MerchantRegionBindings;
import com.ruoyi.merchant.service.IMerchantRegionBindingsService;

/**
 * 商家区域绑定Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-22
 */
@Service
public class MerchantRegionBindingsServiceImpl implements IMerchantRegionBindingsService 
{
    @Autowired
    private MerchantRegionBindingsMapper merchantRegionBindingsMapper;

    /**
     * 查询商家区域绑定
     * 
     * @param bindingId 商家区域绑定主键
     * @return 商家区域绑定
     */
    @Override
    public MerchantRegionBindings selectMerchantRegionBindingsByBindingId(String bindingId)
    {
        return merchantRegionBindingsMapper.selectMerchantRegionBindingsByBindingId(bindingId);
    }

    /**
     * 查询商家区域绑定列表
     * 
     * @param merchantRegionBindings 商家区域绑定
     * @return 商家区域绑定
     */
    @Override
    public List<MerchantRegionBindings> selectMerchantRegionBindingsList(MerchantRegionBindings merchantRegionBindings)
    {
        return merchantRegionBindingsMapper.selectMerchantRegionBindingsList(merchantRegionBindings);
    }

    /**
     * 新增商家区域绑定
     * 
     * @param merchantRegionBindings 商家区域绑定
     * @return 结果
     */
    @Override
    public int insertMerchantRegionBindings(MerchantRegionBindings merchantRegionBindings)
    {
        return merchantRegionBindingsMapper.insertMerchantRegionBindings(merchantRegionBindings);
    }

    /**
     * 修改商家区域绑定
     * 
     * @param merchantRegionBindings 商家区域绑定
     * @return 结果
     */
    @Override
    public int updateMerchantRegionBindings(MerchantRegionBindings merchantRegionBindings)
    {
        return merchantRegionBindingsMapper.updateMerchantRegionBindings(merchantRegionBindings);
    }

    /**
     * 批量删除商家区域绑定
     * 
     * @param bindingIds 需要删除的商家区域绑定主键
     * @return 结果
     */
    @Override
    public int deleteMerchantRegionBindingsByBindingIds(String[] bindingIds)
    {
        return merchantRegionBindingsMapper.deleteMerchantRegionBindingsByBindingIds(bindingIds);
    }

    /**
     * 删除商家区域绑定信息
     * 
     * @param bindingId 商家区域绑定主键
     * @return 结果
     */
    @Override
    public int deleteMerchantRegionBindingsByBindingId(String bindingId)
    {
        return merchantRegionBindingsMapper.deleteMerchantRegionBindingsByBindingId(bindingId);
    }
}
